﻿using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Web.Mvc;

namespace TMT_CMS.BL.Model.User
{
    public class UserRoleEditModel
    {
        public int ID { get; set; }
        [Required(ErrorMessage = "用户组名不能为空")]
        [Remote("CheckRoleNameExists", "User", ErrorMessage = "用户组名已存在")]
        [StringLength(50,ErrorMessage = "用户组长度太长")]
        public string RoleName { get; set; }

        public List<long> PermissionIDs { get; set; }
    }

}
